package com.hqyj.javaSpringBoot.modules.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/common")
public class CommonController {

    /**
     * 403   权限不足
     * 127.0.0.1/common/403
     * @return
     */
    @GetMapping("/403")
    public String errorPage403(){
        return "indexError";
    }


    /**
     * 404   找不打资源
     * 127.0.0.1/common/404
     * @return
     */
    @GetMapping("/404")
    public String errorPage404(){
        return "indexError";
    }


    /**
     * 500   内部错误
     * 127.0.0.1/common/500
     * @return
     */
    @GetMapping("/500")
    public String errorPage500(){
        return "indexError";
    }


    /**
     * dashboard
     * 127.0.0.1/common/dashboard
     * @return
     */
    @GetMapping("/dashboard")
    public String dashbroadPage(){
        return "index";
    }
}
